import axios from '@/libs/api.request'

export const index = info => {
    return axios.access({
        url: 'index',
        params: info,
        method: 'get'
    })
}

export const draw = info => {
    return axios.access({
        url: 'draw',
        data: info,
        method: 'post'
    })
}

export const rule = info => {
    return axios.access({
        url: 'rule',
        params: info,
        method: 'get'
    })
}

export const prize = info => {
    return axios.access({
        url: 'prize',
        params: info,
        method: 'get'
    })
}

export const recordPrize = info => {
    return axios.access({
        url: 'recordPrize',
        params: info,
        method: 'get'
    })
}

export const prizeDetail = info => {
    return axios.access({
        url: 'prizeDetail',
        params: info,
        method: 'get'
    })
}

export const verifyCode = info => {
    return axios.access({
        url: 'verifyCode',
        data: info,
        method: 'post'
    })
}

export const contact = info => {
    return axios.access({
        url: 'contact',
        params: info,
        method: 'get'
    })
}

export const setContact = info => {
    return axios.access({
        url: 'setContact',
        data: info,
        method: 'post'
    })
}

export const setJoinSecretKey = info => {
    return axios.access({
        url: 'setJoinSecretKey',
        data: info,
        method: 'post'
    })
}